!function(){var e={411:function(){ /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ !function(e){var t=0,n=function(t,n){this.options=n,this.$elementFilestyle=[],this.$element=e(t)};n.prototype={clear:function(){this.$element.val(""),this.$elementFilestyle.find(":text").val(""),this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle"),this.$elementFilestyle.remove()},disabled:function(e){if(!0===e)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==e)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(e){if(!0===e)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==e)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(e){if(!0===e)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==e)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".icon-span-filestyle").remove())}},input:function(e){if(!0===e)this.options.input||(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),this.pushNameFiles(),this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"));else{if(!1!==e)return this.options.input;if(this.options.input){this.options.input=!1,this.$elementFilestyle.find(":text").remove();var t=this.pushNameFiles();t.length>0&&this.options.badge&&this.$elementFilestyle.find("label").append(' '+t.length+""),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn")}}},size:function(e){if(void 0===e)return this.options.size;var t=this.$elementFilestyle.find("label"),n=this.$elementFilestyle.find("input");t.removeClass("btn-lg btn-sm"),n.removeClass("input-lg input-sm"),"nr"!=e&&(t.addClass("btn-"+e),n.addClass("input-"+e))},placeholder:function(e){if(void 0===e)return this.options.placeholder;this.options.placeholder=e,this.$elementFilestyle.find("input").attr("placeholder",e)},buttonText:function(e){if(void 0===e)return this.options.buttonText;this.options.buttonText=e,this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(e){if(void 0===e)return this.options.buttonName;this.options.buttonName=e,this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(e){if(void 0===e)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?' ':""},htmlInput:function(){return this.options.input?' ':""},pushNameFiles:function(){var e="",t=[];void 0===this.$element[0].files?t[0]={name:this.$element[0]&&this.$element[0].value}:t=this.$element[0].files;for(var n=0;n",n=i.options.buttonBefore?r+i.htmlInput():i.htmlInput()+r,i.$elementFilestyle=e('
'+n+"
"),i.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress((function(e){if(13===e.keyCode||32===e.charCode)return i.$elementFilestyle.find("label").click(),!1})),i.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(i.$elementFilestyle),i.options.disabled&&i.$element.attr("disabled","true"),i.$element.change((function(){var e=i.pushNameFiles();0==i.options.input&&i.options.badge?0==i.$elementFilestyle.find(".badge").length?i.$elementFilestyle.find("label").append(' '+e.length+""):0==e.length?i.$elementFilestyle.find(".badge").remove():i.$elementFilestyle.find(".badge").html(e.length):i.$elementFilestyle.find(".badge").remove()})),window.navigator.userAgent.search(/firefox/i)>-1&&i.$elementFilestyle.find("label").click((function(){return i.$element.click(),!1}))}};var r=e.fn.filestyle;e.fn.filestyle=function(t,r){var i="",o=this.each((function(){if("file"===e(this).attr("type")){var o=e(this),s=o.data("filestyle"),a=e.extend({},e.fn.filestyle.defaults,t,"object"==typeof t&&t);s||(o.data("filestyle",s=new n(this,a)),s.constructor()),"string"==typeof t&&(i=s[t](r))}}));return void 0!==typeof i?i:o},e.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},e.fn.filestyle.noConflict=function(){return e.fn.filestyle=r,this},e((function(){e(".filestyle").each((function(){var t=e(this),n={input:"false"!==t.attr("data-input"),icon:"false"!==t.attr("data-icon"),buttonBefore:"true"===t.attr("data-buttonBefore"),disabled:"true"===t.attr("data-disabled"),size:t.attr("data-size"),buttonText:t.attr("data-buttonText"),buttonName:t.attr("data-buttonName"),iconName:t.attr("data-iconName"),badge:"false"!==t.attr("data-badge"),placeholder:t.attr("data-placeholder")};t.filestyle(n)}))}))}(window.jQuery)},861:function(){ /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ !function(e){e.fn.scrollbox=function(t){return(t=e.extend({linear:!1,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:!0,onMouseOverPause:!0,paused:!1,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:!0,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:!1},t)).scrollOffset="vertical"===t.direction?"scrollTop":"scrollLeft",t.queue&&(t.queue=e("#"+t.queue)),this.each((function(){var n,r,i,o,s,a,l,c,u,f=e(this),d=null,p=null,h=!1,m=0,g=0;t.onMouseOverPause&&(f.bind("mouseover",(function(){h=!0})),f.bind("mouseout",(function(){h=!1}))),n=f.children(t.listElement+":first-child"),!1===t.infiniteLoop&&0===t.switchAmount&&(t.switchAmount=n.children().length),a=function(){var i,s,a,l,c;if(!h&&(i=n.children(t.listItemElement+":first-child"),l="auto"!==t.distance?t.distance:"vertical"===t.direction?i.outerHeight(!0):i.outerWidth(!0),t.linear?a=Math.min(f[0][t.scrollOffset]+t.step,l):(c=Math.max(3,parseInt(.3*(l-f[0][t.scrollOffset]),10)),a=Math.min(f[0][t.scrollOffset]+c,l)),f[0][t.scrollOffset]=a,a>=l)){for(s=0;s0?(n.append(t.queue.find(t.listItemElement)[0]),n.children(t.listItemElement+":first-child").remove()):n.append(n.children(t.listItemElement+":first-child")),++m;if(f[0][t.scrollOffset]=0,clearInterval(d),d=null,e.isFunction(t.afterForward)&&t.afterForward.call(f,{switchCount:m,currentFirstChild:n.children(t.listItemElement+":first-child")}),t.triggerStackable&&0!==g)return void r();if(!1===t.infiniteLoop&&m>=t.switchAmount)return;t.autoPlay&&(p=setTimeout(o,1e3*t.delay))}},l=function(){if(!h){var i,s,a,l,c;if(0===f[0][t.scrollOffset]){for(s=0;s0?(g--,p=setTimeout(o,0)):(g++,p=setTimeout(i,0)))},o=function(){clearInterval(d),d=setInterval(a,t.speed)},i=function(){clearInterval(d),d=setInterval(l,t.speed)},c=function(){t.autoPlay=!0,h=!1,clearInterval(d),d=setInterval(a,t.speed)},u=function(){h=!0},s=function(e){t.delay=e||t.delay,clearTimeout(p),t.autoPlay&&(p=setTimeout(o,1e3*t.delay))},t.autoPlay&&(p=setTimeout(o,1e3*t.startDelay)),f.bind("resetClock",(function(e){s(e)})),f.bind("forward",(function(){t.triggerStackable?null!==d?g++:o():(clearTimeout(p),o())})),f.bind("backward",(function(){t.triggerStackable?null!==d?g--:i():(clearTimeout(p),i())})),f.bind("pauseHover",(function(){u()})),f.bind("forwardHover",(function(){c()})),f.bind("speedUp",(function(e,n){"undefined"===n&&(n=Math.max(1,parseInt(t.speed/2,10))),t.speed=n})),f.bind("speedDown",(function(e,n){"undefined"===n&&(n=2*t.speed),t.speed=n})),f.bind("updateConfig",(function(n,r){t=e.extend(t,r)}))}))}}(jQuery)},661:function(){!function(e){"use strict";var t=0;function n(t,n){return e.map(t,(function(e){return function(e,t){return e+".touchspin_"+t}(e,n)}))}e.fn.TouchSpin=function(r){if("destroy"!==r){var i={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},o={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each((function(){var s,a,l,c,u,f,d,p,h=e(this),m=h.data(),g=0,v=!1;function y(){var e,t,n;""!==(e=h.val())?s.decimals>0&&"."===e||(t=parseFloat(e),isNaN(t)&&(t=""!==s.replacementval?s.replacementval:0),n=t,t.toString()!==e&&(n=t),ts.max&&(n=s.max),n=function(e){switch(s.forcestepdivisibility){case"round":return(Math.round(e/s.step)*s.step).toFixed(s.decimals);case"floor":return(Math.floor(e/s.step)*s.step).toFixed(s.decimals);case"ceil":return(Math.ceil(e/s.step)*s.step).toFixed(s.decimals);default:return e}}(n),Number(e).toString()!==n.toString()&&(h.val(n),h.trigger("change"))):""!==s.replacementval&&(h.val(s.replacementval),h.trigger("change"))}function b(){if(s.booster){var e=Math.pow(2,Math.floor(g/s.boostat))*s.step;return s.maxboostedstep&&e>s.maxboostedstep&&(e=s.maxboostedstep,c=Math.round(c/e)*e),Math.max(s.step,e)}return s.step}function w(){y(),c=parseFloat(l.input.val()),isNaN(c)&&(c=0);var e=c,t=b();(c+=t)>s.max&&(c=s.max,h.trigger("touchspin.on.max"),C()),l.input.val(Number(c).toFixed(s.decimals)),e!==c&&h.trigger("change")}function x(){y(),c=parseFloat(l.input.val()),isNaN(c)&&(c=0);var e=c,t=b();(c-=t)'+s.prefix+"",c=''+s.postfix+"";i.hasClass("input-group-btn")?(n='",i.append(n)):(n='",e(n).insertBefore(h));o.hasClass("input-group-btn")?(r='",o.prepend(r)):(r='",e(r).insertAfter(h));e(l).insertBefore(h),e(c).insertAfter(h),a=t}(n):function(){var t;t=s.verticalbuttons?'
'+s.prefix+''+s.postfix+'
':'
'+s.prefix+''+s.postfix+'
";a=e(t).insertBefore(h),e(".bootstrap-touchspin-prefix",a).after(h),h.hasClass("input-sm")?a.addClass("input-group-sm"):h.hasClass("input-lg")&&a.addClass("input-group-lg")}()}(),l={down:e(".bootstrap-touchspin-down",a),up:e(".bootstrap-touchspin-up",a),input:e("input",a),prefix:e(".bootstrap-touchspin-prefix",a).addClass(s.prefix_extraclass),postfix:e(".bootstrap-touchspin-postfix",a).addClass(s.postfix_extraclass)},function(){""===s.prefix&&l.prefix.hide();""===s.postfix&&l.postfix.hide()}(),h.on("keydown",(function(e){var t=e.keyCode||e.which;38===t?("up"!==v&&(w(),_()),e.preventDefault()):40===t&&("down"!==v&&(x(),S()),e.preventDefault())})),h.on("keyup",(function(e){var t=e.keyCode||e.which;(38===t||40===t)&&C()})),h.on("blur",(function(){y()})),l.down.on("keydown",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("down"!==v&&(x(),S()),e.preventDefault())})),l.down.on("keyup",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||C()})),l.up.on("keydown",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("up"!==v&&(w(),_()),e.preventDefault())})),l.up.on("keyup",(function(e){var t=e.keyCode||e.which;32!==t&&13!==t||C()})),l.down.on("mousedown.touchspin",(function(e){l.down.off("touchstart.touchspin"),h.is(":disabled")||(x(),S(),e.preventDefault(),e.stopPropagation())})),l.down.on("touchstart.touchspin",(function(e){l.down.off("mousedown.touchspin"),h.is(":disabled")||(x(),S(),e.preventDefault(),e.stopPropagation())})),l.up.on("mousedown.touchspin",(function(e){l.up.off("touchstart.touchspin"),h.is(":disabled")||(w(),_(),e.preventDefault(),e.stopPropagation())})),l.up.on("touchstart.touchspin",(function(e){l.up.off("mousedown.touchspin"),h.is(":disabled")||(w(),_(),e.preventDefault(),e.stopPropagation())})),l.up.on("mouseout touchleave touchend touchcancel",(function(e){v&&(e.stopPropagation(),C())})),l.down.on("mouseout touchleave touchend touchcancel",(function(e){v&&(e.stopPropagation(),C())})),l.down.on("mousemove touchmove",(function(e){v&&(e.stopPropagation(),e.preventDefault())})),l.up.on("mousemove touchmove",(function(e){v&&(e.stopPropagation(),e.preventDefault())})),e(document).on(n(["mouseup","touchend","touchcancel"],t).join(" "),(function(e){v&&(e.preventDefault(),C())})),e(document).on(n(["mousemove","touchmove","scroll","scrollstart"],t).join(" "),(function(e){v&&(e.preventDefault(),C())})),h.on("mousewheel DOMMouseScroll",(function(e){if(s.mousewheel&&h.is(":focus")){var t=e.originalEvent.wheelDelta||-e.originalEvent.deltaY||-e.originalEvent.detail;e.stopPropagation(),e.preventDefault(),t<0?x():w()}})),h.on("touchspin.uponce",(function(){C(),w()})),h.on("touchspin.downonce",(function(){C(),x()})),h.on("touchspin.startupspin",(function(){_()})),h.on("touchspin.startdownspin",(function(){S()})),h.on("touchspin.stopspin",(function(){C()})),h.on("touchspin.updatesettings",(function(t,n){!function(t){(function(t){s=e.extend({},s,t)})(t),y();var n=l.input.val();""!==n&&(n=Number(l.input.val()),l.input.val(n.toFixed(s.decimals)))}(n)})),l.input.css("display","block");var c}()}))}this.each((function(){var t=e(this).data();e(document).off(n(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],t.spinnerid).join(" "))}))}}(jQuery)},615:function(){ /*! * Bootstrap v4.0.0-alpha.5 (https://getbootstrap.com) * Copyright 2011-2016 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){function e(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n,r,i,o,s,a,l,c,u,f,d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;nthis._items.length-1||t<0)){if(this._isSliding)return void e(this._element).one(f.SLID,(function(){return n.to(t)}));if(r===t)return this.pause(),void this.cycle();var i=t>r?c:u;this._slide(i,this._items[t])}},o.prototype.dispose=function(){e(this._element).off(i),e.removeData(this._element,r),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},o.prototype._getConfig=function(t){return t=e.extend({},a,t),h.typeCheckConfig(n,t,l),t},o.prototype._addEventListeners=function(){this._config.keyboard&&e(this._element).on(f.KEYDOWN,e.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||e(this._element).on(f.MOUSEENTER,e.proxy(this.pause,this)).on(f.MOUSELEAVE,e.proxy(this.cycle,this))},o.prototype._keydown=function(e){if(e.preventDefault(),!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}},o.prototype._getItemIndex=function(t){return this._items=e.makeArray(e(t).parent().find(S)),this._items.indexOf(t)},o.prototype._getItemByDirection=function(e,t){var n=e===c,r=e===u,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var s=(i+(e===u?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},o.prototype._triggerSlideEvent=function(t,n){var r=e.Event(f.SLIDE,{relatedTarget:t,direction:n});return e(this._element).trigger(r),r},o.prototype._setActiveIndicatorElement=function(t){if(this._indicatorsElement){e(this._indicatorsElement).find(w).removeClass(g);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(g)}},o.prototype._slide=function(t,n){var r=this,i=e(this._element).find(x)[0],o=n||i&&this._getItemByDirection(t,i),s=Boolean(this._interval),a=t===c?b:y;if(o&&e(o).hasClass(g))this._isSliding=!1;else if(!this._triggerSlideEvent(o,a).isDefaultPrevented()&&i&&o){this._isSliding=!0,s&&this.pause(),this._setActiveIndicatorElement(o);var l=e.Event(f.SLID,{relatedTarget:o,direction:a});h.supportsTransitionEnd()&&e(this._element).hasClass(v)?(e(o).addClass(t),h.reflow(o),e(i).addClass(a),e(o).addClass(a),e(i).one(h.TRANSITION_END,(function(){e(o).removeClass(a).removeClass(t),e(o).addClass(g),e(i).removeClass(g).removeClass(t).removeClass(a),r._isSliding=!1,setTimeout((function(){return e(r._element).trigger(l)}),0)})).emulateTransitionEnd(600)):(e(i).removeClass(g),e(o).addClass(g),this._isSliding=!1,e(this._element).trigger(l)),s&&this.cycle()}},o._jQueryInterface=function(t){return this.each((function(){var n=e(this).data(r),i=e.extend({},a,e(this).data());"object"===(void 0===t?"undefined":d(t))&&e.extend(i,t);var s="string"==typeof t?t:i.slide;if(n||(n=new o(this,i),e(this).data(r,n)),"number"==typeof t)n.to(t);else if("string"==typeof s){if(void 0===n[s])throw new Error('No method named "'+s+'"');n[s]()}else i.interval&&(n.pause(),n.cycle())}))},o._dataApiClickHandler=function(t){var n=h.getSelectorFromElement(this);if(n){var i=e(n)[0];if(i&&e(i).hasClass(m)){var s=e.extend({},e(i).data(),e(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),o._jQueryInterface.call(e(i),s),a&&e(i).data(r).to(a),t.preventDefault()}}},p(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return a}}]),o}();e(document).on(f.CLICK_DATA_API,T,k._dataApiClickHandler),e(window).on(f.LOAD_DATA_API,(function(){e(E).each((function(){var t=e(this);k._jQueryInterface.call(t,t.data())}))})),e.fn[n]=k._jQueryInterface,e.fn[n].Constructor=k,e.fn[n].noConflict=function(){return e.fn[n]=s,k._jQueryInterface}}(jQuery),function(e){var n="collapse",r="bs.collapse",i="."+r,o=e.fn[n],s={toggle:!0,parent:""},a={toggle:"boolean",parent:"string"},l={SHOW:"show"+i,SHOWN:"shown"+i,HIDE:"hide"+i,HIDDEN:"hidden"+i,CLICK_DATA_API:"click"+i+".data-api"},c="in",u="collapse",f="collapsing",m="collapsed",g="width",v="height",y=".card > .in, .card > .collapsing",b='[data-toggle="collapse"]',w=function(){function i(n,r){t(this,i),this._isTransitioning=!1,this._element=n,this._config=this._getConfig(r),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return i.prototype.toggle=function(){e(this._element).hasClass(c)?this.hide():this.show()},i.prototype.show=function(){var t=this;if(!this._isTransitioning&&!e(this._element).hasClass(c)){var n=void 0,o=void 0;if(this._parent&&((n=e.makeArray(e(y))).length||(n=null)),!(n&&(o=e(n).data(r),o&&o._isTransitioning))){var s=e.Event(l.SHOW);if(e(this._element).trigger(s),!s.isDefaultPrevented()){n&&(i._jQueryInterface.call(e(n),"hide"),o||e(n).data(r,null));var a=this._getDimension();e(this._element).removeClass(u).addClass(f),this._element.style[a]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&e(this._triggerArray).removeClass(m).attr("aria-expanded",!0),this.setTransitioning(!0);var d=function(){e(t._element).removeClass(f).addClass(u).addClass(c),t._element.style[a]="",t.setTransitioning(!1),e(t._element).trigger(l.SHOWN)};if(!h.supportsTransitionEnd())return void d();var p="scroll"+(a[0].toUpperCase()+a.slice(1));e(this._element).one(h.TRANSITION_END,d).emulateTransitionEnd(600),this._element.style[a]=this._element[p]+"px"}}}},i.prototype.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(c)){var n=e.Event(l.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension(),i=r===g?"offsetWidth":"offsetHeight";this._element.style[r]=this._element[i]+"px",h.reflow(this._element),e(this._element).addClass(f).removeClass(u).removeClass(c),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&e(this._triggerArray).addClass(m).attr("aria-expanded",!1),this.setTransitioning(!0);var o=function(){t.setTransitioning(!1),e(t._element).removeClass(f).addClass(u).trigger(l.HIDDEN)};return this._element.style[r]="",h.supportsTransitionEnd()?void e(this._element).one(h.TRANSITION_END,o).emulateTransitionEnd(600):void o()}}},i.prototype.setTransitioning=function(e){this._isTransitioning=e},i.prototype.dispose=function(){e.removeData(this._element,r),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i.prototype._getConfig=function(t){return(t=e.extend({},s,t)).toggle=Boolean(t.toggle),h.typeCheckConfig(n,t,a),t},i.prototype._getDimension=function(){return e(this._element).hasClass(g)?g:v},i.prototype._getParent=function(){var t=this,n=e(this._config.parent)[0],r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(n).find(r).each((function(e,n){t._addAriaAndCollapsedClass(i._getTargetFromElement(n),[n])})),n},i.prototype._addAriaAndCollapsedClass=function(t,n){if(t){var r=e(t).hasClass(c);t.setAttribute("aria-expanded",r),n.length&&e(n).toggleClass(m,!r).attr("aria-expanded",r)}},i._getTargetFromElement=function(t){var n=h.getSelectorFromElement(t);return n?e(n)[0]:null},i._jQueryInterface=function(t){return this.each((function(){var n=e(this),o=n.data(r),a=e.extend({},s,n.data(),"object"===(void 0===t?"undefined":d(t))&&t);if(!o&&a.toggle&&/show|hide/.test(t)&&(a.toggle=!1),o||(o=new i(this,a),n.data(r,o)),"string"==typeof t){if(void 0===o[t])throw new Error('No method named "'+t+'"');o[t]()}}))},p(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}}]),i}();e(document).on(l.CLICK_DATA_API,b,(function(t){t.preventDefault();var n=w._getTargetFromElement(this),i=e(n).data(r)?"toggle":e(this).data();w._jQueryInterface.call(e(n),i)})),e.fn[n]=w._jQueryInterface,e.fn[n].Constructor=w,e.fn[n].noConflict=function(){return e.fn[n]=o,w._jQueryInterface}}(jQuery),function(e){var n="dropdown",r="bs.dropdown",i="."+r,o=".data-api",s=e.fn[n],a={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,CLICK:"click"+i,CLICK_DATA_API:"click"+i+o,KEYDOWN_DATA_API:"keydown"+i+o},l="dropdown-backdrop",c="disabled",u="open",f=".dropdown-backdrop",d='[data-toggle="dropdown"]',m=".dropdown form",g='[role="menu"]',v='[role="listbox"]',y=".navbar-nav",b='[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a',w=function(){function n(e){t(this,n),this._element=e,this._addEventListeners()}return n.prototype.toggle=function(){if(this.disabled||e(this).hasClass(c))return!1;var t=n._getParentFromElement(this),r=e(t).hasClass(u);if(n._clearMenus(),r)return!1;if("ontouchstart"in document.documentElement&&!e(t).closest(y).length){var i=document.createElement("div");i.className=l,e(i).insertBefore(this),e(i).on("click",n._clearMenus)}var o={relatedTarget:this},s=e.Event(a.SHOW,o);return e(t).trigger(s),!s.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),e(t).toggleClass(u),e(t).trigger(e.Event(a.SHOWN,o)),!1)},n.prototype.dispose=function(){e.removeData(this._element,r),e(this._element).off(i),this._element=null},n.prototype._addEventListeners=function(){e(this._element).on(a.CLICK,this.toggle)},n._jQueryInterface=function(t){return this.each((function(){var i=e(this).data(r);if(i||e(this).data(r,i=new n(this)),"string"==typeof t){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t].call(this)}}))},n._clearMenus=function(t){if(!t||3!==t.which){var r=e(f)[0];r&&r.parentNode.removeChild(r);for(var i=e.makeArray(e(d)),o=0;o0&&a--,40===t.which&&adocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},o.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},o.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}if(this._activeTarget&&e=this._offsets[i]&&(void 0===this._offsets[i+1]||e .nav-item .fade, > .fade",m=".active",g="> .nav-item > .active, > .active",v='[data-toggle="tab"], [data-toggle="pill"]',y=".dropdown-toggle",b="> .dropdown-menu .active",w=function(){function r(e){t(this,r),this._element=e}return r.prototype.show=function(){var t=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!e(this._element).hasClass(a)){var n=void 0,r=void 0,i=e(this._element).closest(f)[0],s=h.getSelectorFromElement(this._element);i&&(r=(r=e.makeArray(e(i).find(m)))[r.length-1]);var l=e.Event(o.HIDE,{relatedTarget:this._element}),c=e.Event(o.SHOW,{relatedTarget:r});if(r&&e(r).trigger(l),e(this._element).trigger(c),!c.isDefaultPrevented()&&!l.isDefaultPrevented()){s&&(n=e(s)[0]),this._activate(this._element,i);var u=function(){var n=e.Event(o.HIDDEN,{relatedTarget:t._element}),i=e.Event(o.SHOWN,{relatedTarget:r});e(r).trigger(n),e(t._element).trigger(i)};n?this._activate(n,n.parentNode,u):u()}}},r.prototype.dispose=function(){e.removeClass(this._element,n),this._element=null},r.prototype._activate=function(t,n,r){var i=e(n).find(g)[0],o=r&&h.supportsTransitionEnd()&&(i&&e(i).hasClass(l)||Boolean(e(n).find(d)[0])),s=e.proxy(this._transitionComplete,this,t,i,o,r);i&&o?e(i).one(h.TRANSITION_END,s).emulateTransitionEnd(150):s(),i&&e(i).removeClass(c)},r.prototype._transitionComplete=function(t,n,r,i){if(n){e(n).removeClass(a);var o=e(n).find(b)[0];o&&e(o).removeClass(a),n.setAttribute("aria-expanded",!1)}if(e(t).addClass(a),t.setAttribute("aria-expanded",!0),r?(h.reflow(t),e(t).addClass(c)):e(t).removeClass(l),t.parentNode&&e(t.parentNode).hasClass(s)){var f=e(t).closest(u)[0];f&&e(f).find(y).addClass(a),t.setAttribute("aria-expanded",!0)}i&&i()},r._jQueryInterface=function(t){return this.each((function(){var i=e(this),o=i.data(n);if(o||(o=o=new r(this),i.data(n,o)),"string"==typeof t){if(void 0===o[t])throw new Error('No method named "'+t+'"');o[t]()}}))},p(r,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),r}();e(document).on(o.CLICK_DATA_API,v,(function(t){t.preventDefault(),w._jQueryInterface.call(e(this),"show")})),e.fn.tab=w._jQueryInterface,e.fn.tab.Constructor=w,e.fn.tab.noConflict=function(){return e.fn.tab=i,w._jQueryInterface}}(jQuery),function(e){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var n="tooltip",r="bs.tooltip",i="."+r,o=e.fn[n],s={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},a={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},l={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},c="in",u="out",f={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},m="fade",g="in",v=".tooltip-inner",y={element:!1,enabled:!1},b="hover",w="focus",x="manual",S=function(){function o(e,n){t(this,o),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=e,this.config=this._getConfig(n),this.tip=null,this._setListeners()}return o.prototype.enable=function(){this._isEnabled=!0},o.prototype.disable=function(){this._isEnabled=!1},o.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.prototype.toggle=function(t){if(t){var n=this.constructor.DATA_KEY,r=e(t.currentTarget).data(n);r||(r=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(e(this.getTipElement()).hasClass(g))return void this._leave(null,this);this._enter(null,this)}},o.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},o.prototype.show=function(){var t=this,n=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(n);var r=e.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!r)return;var i=this.getTipElement(),s=h.getUID(this.constructor.NAME);i.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&e(i).addClass(m);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,l=this._getAttachment(a);e(i).data(this.constructor.DATA_KEY,this).appendTo(document.body),e(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:l,element:i,target:this.element,classes:y,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),h.reflow(i),this._tether.position(),e(i).addClass(g);var c=function(){var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===u&&t._leave(null,t)};if(h.supportsTransitionEnd()&&e(this.tip).hasClass(m))return void e(this.tip).one(h.TRANSITION_END,c).emulateTransitionEnd(o._TRANSITION_DURATION);c()}},o.prototype.hide=function(t){var n=this,r=this.getTipElement(),i=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==c&&r.parentNode&&r.parentNode.removeChild(r),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),t&&t()};e(this.element).trigger(i),i.isDefaultPrevented()||(e(r).removeClass(g),h.supportsTransitionEnd()&&e(this.tip).hasClass(m)?e(r).one(h.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},o.prototype.isWithContent=function(){return Boolean(this.getTitle())},o.prototype.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0]},o.prototype.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(v),this.getTitle()),t.removeClass(m).removeClass(g),this.cleanupTether()},o.prototype.setElementContent=function(t,n){var r=this.config.html;"object"===(void 0===n?"undefined":d(n))&&(n.nodeType||n.jquery)?r?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()):t[r?"html":"text"](n)},o.prototype.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},o.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},o.prototype._getAttachment=function(e){return l[e.toUpperCase()]},o.prototype._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,e.proxy(t.toggle,t));else if(n!==x){var r=n===b?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=n===b?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(r,t.config.selector,e.proxy(t._enter,t)).on(i,t.config.selector,e.proxy(t._leave,t))}})),this.config.selector?this.config=e.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o.prototype._fixTitle=function(){var e=d(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o.prototype._enter=function(t,n){var r=this.constructor.DATA_KEY;return(n=n||e(t.currentTarget).data(r))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusin"===t.type?w:b]=!0),e(n.getTipElement()).hasClass(g)||n._hoverState===c?void(n._hoverState=c):(clearTimeout(n._timeout),n._hoverState=c,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout((function(){n._hoverState===c&&n.show()}),n.config.delay.show)):void n.show())},o.prototype._leave=function(t,n){var r=this.constructor.DATA_KEY;if((n=n||e(t.currentTarget).data(r))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusout"===t.type?w:b]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=u,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout((function(){n._hoverState===u&&n.hide()}),n.config.delay.hide)):void n.hide()},o.prototype._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},o.prototype._getConfig=function(t){return(t=e.extend({},this.constructor.Default,e(this.element).data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),h.typeCheckConfig(n,t,this.constructor.DefaultType),t},o.prototype._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},o._jQueryInterface=function(t){return this.each((function(){var n=e(this).data(r),i="object"===(void 0===t?"undefined":d(t))?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new o(this,i),e(this).data(r,n)),"string"==typeof t)){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t]()}}))},p(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return a}}]),o}();return e.fn[n]=S._jQueryInterface,e.fn[n].Constructor=S,e.fn[n].noConflict=function(){return e.fn[n]=o,S._jQueryInterface},S}(jQuery));!function(n){var r="popover",i="bs.popover",o="."+i,s=n.fn[r],a=n.extend({},m.Default,{placement:"right",trigger:"click",content:"",template:''}),l=n.extend({},m.DefaultType,{content:"(string|element|function)"}),c="fade",u="in",f=".popover-title",h=".popover-content",g={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},v=function(s){function m(){return t(this,m),e(this,s.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(m,s),m.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},m.prototype.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0]},m.prototype.setContent=function(){var e=n(this.getTipElement());this.setElementContent(e.find(f),this.getTitle()),this.setElementContent(e.find(h),this._getContent()),e.removeClass(c).removeClass(u),this.cleanupTether()},m.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},m._jQueryInterface=function(e){return this.each((function(){var t=n(this).data(i),r="object"===(void 0===e?"undefined":d(e))?e:null;if((t||!/destroy|hide/.test(e))&&(t||(t=new m(this,r),n(this).data(i,t)),"string"==typeof e)){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e]()}}))},p(m,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return a}},{key:"NAME",get:function(){return r}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return l}}]),m}(m);n.fn[r]=v._jQueryInterface,n.fn[r].Constructor=v,n.fn[r].noConflict=function(){return n.fn[r]=s,v._jQueryInterface}}(jQuery)}()},151:function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,s,a,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(i(o=this._events[e]))return!1;if(n(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),o.apply(this,a)}else if(r(o))for(a=Array.prototype.slice.call(arguments,1),s=(c=o.slice()).length,l=0;l0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,s,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(a=s;a-- >0;)if(i[a]===t||i[a].listener&&i[a].listener===t){o=a;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},5:function(e,t,n){"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},975:function(e){e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return i(n||e)}),c,c.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s1&&"flex-start"===e.style.alignContent)for(t=0;r=e.lines[++i];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&"flex-end"===e.style.alignContent)for(t=e.flexStyle.crossSpace;r=e.lines[++i];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&"center"===e.style.alignContent)for(t=e.flexStyle.crossSpace/2;r=e.lines[++i];)r.crossStart=t,t+=r.cross;else if(e.lines.length>1&&"space-between"===e.style.alignContent)for(n=e.flexStyle.crossSpace/(e.lines.length-1),t=0;r=e.lines[++i];)r.crossStart=t,t+=r.cross+n;else if(e.lines.length>1&&"space-around"===e.style.alignContent)for(t=(n=2*e.flexStyle.crossSpace/(2*e.lines.length))/2;r=e.lines[++i];)r.crossStart=t,t+=r.cross+n;else for(n=e.flexStyle.crossSpace/e.lines.length,t=e.flexStyle.crossInnerBefore;r=e.lines[++i];)r.crossStart=t,r.cross+=n,t+=r.cross}},{}],2:[function(e,t,n){t.exports=function(e){for(var t,n=-1;line=e.lines[++n];)for(t=-1;child=line.children[++t];){var r=child.style.alignSelf;"auto"===r&&(r=e.style.alignItems),"flex-start"===r?child.flexStyle.crossStart=line.crossStart:"flex-end"===r?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===r?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(e,t,n){t.exports=function(e,t){var n="row"===t||"row-reverse"===t,r=e.mainAxis;r?n&&"inline"===r||!n&&"block"===r||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter}):(e.flexStyle=n?{main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:{main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},"content-box"===e.style.boxSizing&&("number"==typeof e.flexStyle.main&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),"number"==typeof e.flexStyle.cross&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter))),e.mainAxis=n?"inline":"block",e.crossAxis=n?"block":"inline","number"==typeof e.style.flexBasis&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,"auto"===e.flexStyle.mainOuter&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),"auto"===e.flexStyle.crossOuter&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),"number"==typeof e.flexStyle.mainBefore&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),"number"==typeof e.flexStyle.mainAfter&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),"number"==typeof e.flexStyle.crossBefore&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),"number"==typeof e.flexStyle.crossAfter&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(e,t,n){var r=e("../reduce");t.exports=function(e){if(e.mainSpace>0){var t=r(e.children,(function(e,t){return e+parseFloat(t.style.flexGrow)}),0);t>0&&(e.main=r(e.children,(function(n,r){return"auto"===r.flexStyle.main?r.flexStyle.main=r.flexStyle.mainOffset+parseFloat(r.style.flexGrow)/t*e.mainSpace:r.flexStyle.main+=parseFloat(r.style.flexGrow)/t*e.mainSpace,r.flexStyle.mainOuter=r.flexStyle.main+r.flexStyle.mainBefore+r.flexStyle.mainAfter,n+r.flexStyle.mainOuter}),0),e.mainSpace=0)}}},{"../reduce":12}],5:[function(e,t,n){var r=e("../reduce");t.exports=function(e){if(e.mainSpace<0){var t=r(e.children,(function(e,t){return e+parseFloat(t.style.flexShrink)}),0);t>0&&(e.main=r(e.children,(function(n,r){return r.flexStyle.main+=parseFloat(r.style.flexShrink)/t*e.mainSpace,r.flexStyle.mainOuter=r.flexStyle.main+r.flexStyle.mainBefore+r.flexStyle.mainAfter,n+r.flexStyle.mainOuter}),0),e.mainSpace=0)}}},{"../reduce":12}],6:[function(e,t,n){var r=e("../reduce");t.exports=function(e){var t;e.lines=[t={main:0,cross:0,children:[]}];for(var n,i=-1;n=e.children[++i];)"nowrap"===e.style.flexWrap||0===t.children.length||"auto"===e.flexStyle.main||e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter>=t.main+n.flexStyle.mainOuter?(t.main+=n.flexStyle.mainOuter,t.cross=Math.max(t.cross,n.flexStyle.crossOuter)):e.lines.push(t={main:n.flexStyle.mainOuter,cross:n.flexStyle.crossOuter,children:[]}),t.children.push(n);e.flexStyle.mainLines=r(e.lines,(function(e,t){return Math.max(e,t.main)}),0),e.flexStyle.crossLines=r(e.lines,(function(e,t){return e+t.cross}),0),"auto"===e.flexStyle.main&&(e.flexStyle.main=Math.max(e.flexStyle.mainOffset,e.flexStyle.mainLines+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter)),"auto"===e.flexStyle.cross&&(e.flexStyle.cross=Math.max(e.flexStyle.crossOffset,e.flexStyle.crossLines+e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter)),e.flexStyle.crossSpace=e.flexStyle.cross-e.flexStyle.crossInnerBefore-e.flexStyle.crossInnerAfter-e.flexStyle.crossBorderBefore-e.flexStyle.crossBorderAfter-e.flexStyle.crossLines,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}},{"../reduce":12}],7:[function(e,t,n){function r(t){for(var n,r=-1;n=t.children[++r];)e("./flex-direction")(n,t.style.flexDirection);e("./flex-direction")(t,t.style.flexDirection),e("./order")(t),e("./flexbox-lines")(t),e("./align-content")(t),r=-1;for(var i;i=t.lines[++r];)i.mainSpace=t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter-i.main,e("./flex-grow")(i),e("./flex-shrink")(i),e("./margin-main")(i),e("./margin-cross")(i),e("./justify-content")(i,t.style.justifyContent,t);e("./align-items")(t)}t.exports=r},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(e,t,n){t.exports=function(e,t,n){var r,i,o,s=n.flexStyle.mainInnerBefore,a=-1;if("flex-end"===t)for(r=e.mainSpace,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter;else if("center"===t)for(r=e.mainSpace/2,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter;else if("space-between"===t)for(i=e.mainSpace/(e.children.length-1),r=0,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter+i;else if("space-around"===t)for(r=(i=2*e.mainSpace/(2*e.children.length))/2,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter+i;else for(r=0,r+=s;o=e.children[++a];)o.flexStyle.mainStart=r,r+=o.flexStyle.mainOuter}},{}],9:[function(e,t,n){t.exports=function(e){for(var t,n=-1;t=e.children[++n];){var r=0;"auto"===t.flexStyle.crossBefore&&++r,"auto"===t.flexStyle.crossAfter&&++r;var i=e.cross-t.flexStyle.crossOuter;"auto"===t.flexStyle.crossBefore&&(t.flexStyle.crossBefore=i/r),"auto"===t.flexStyle.crossAfter&&(t.flexStyle.crossAfter=i/r),"auto"===t.flexStyle.cross?t.flexStyle.crossOuter=t.flexStyle.crossOffset+t.flexStyle.crossBefore+t.flexStyle.crossAfter:t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}}},{}],10:[function(e,t,n){t.exports=function(e){for(var t,n=0,r=-1;t=e.children[++r];)"auto"===t.flexStyle.mainBefore&&++n,"auto"===t.flexStyle.mainAfter&&++n;if(n>0){for(r=-1;t=e.children[++r];)"auto"===t.flexStyle.mainBefore&&(t.flexStyle.mainBefore=e.mainSpace/n),"auto"===t.flexStyle.mainAfter&&(t.flexStyle.mainAfter=e.mainSpace/n),"auto"===t.flexStyle.main?t.flexStyle.mainOuter=t.flexStyle.mainOffset+t.flexStyle.mainBefore+t.flexStyle.mainAfter:t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter;e.mainSpace=0}}},{}],11:[function(e,t,n){var r=/^(column|row)-reverse$/;t.exports=function(e){e.children.sort((function(e,t){return e.style.order-t.style.order||e.index-t.index})),r.test(e.style.flexDirection)&&e.children.reverse()}},{}],12:[function(e,t,n){function r(e,t,n){for(var r=e.length,i=-1;++i0)){var a=t.originalEvent?t.originalEvent:t;if(!a.pointerType||"mouse"!=a.pointerType||0!=n.fallbackToMouseEvents){var l,c=a.touches,u=c?c[0]:a;return _e=w,c?Ce=c.length:!1!==n.preventDefaultEvents&&t.preventDefault(),de=0,pe=null,he=null,we=null,me=0,ge=0,ve=0,ye=1,be=0,(f={})[r]=te(r),f[i]=te(i),f[o]=te(o),f[s]=te(s),xe=f,K(),Z(0,u),!c||Ce===n.fingers||n.fingers===y||W()?(Ee=oe(),2==Ce&&(Z(1,c[1]),ge=ve=re(Te[0].start,Te[1].start)),(n.swipeStatus||n.pinchStatus)&&(l=B(a,_e))):l=!1,!1===l?(B(a,_e=_),l):(n.hold&&(Ne=setTimeout(e.proxy((function(){Se.trigger("hold",[a.target]),n.hold&&(l=n.hold.call(Se,a,a.target))}),this),n.longTapThreshold)),G(!0),null)}}var f}function O(t){var f,d,p,h,m,b,w=t.originalEvent?t.originalEvent:t;if(_e!==S&&_e!==_&&!X()){var C,T=w.touches,E=J(T?T[0]:w);if(ke=oe(),T&&(Ce=T.length),n.hold&&clearTimeout(Ne),_e=x,2==Ce&&(0==ge?(Z(1,T[1]),ge=ve=re(Te[0].start,Te[1].start)):(J(T[1]),ve=re(Te[0].end,Te[1].end),Te[0].end,Te[1].end,we=1>ye?l:a),ye=(ve/ge*1).toFixed(2),be=Math.abs(ge-ve)),Ce===n.fingers||n.fingers===y||!T||W()){if(pe=ie(E.start,E.end),function(e,t){if(!1!==n.preventDefaultEvents)if(n.allowPageScroll===c)e.preventDefault();else{var a=n.allowPageScroll===u;switch(t){case r:(n.swipeLeft&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case i:(n.swipeRight&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case o:(n.swipeUp&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault();break;case s:(n.swipeDown&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault()}}}(t,he=ie(E.last,E.end)),m=E.start,b=E.end,de=Math.round(Math.sqrt(Math.pow(b.x-m.x,2)+Math.pow(b.y-m.y,2))),me=ne(),h=de,(p=pe)!=c&&(h=Math.max(h,ee(p)),xe[p].distance=h),C=B(w,_e),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var k=!0;if(n.triggerOnTouchLeave){var A={left:(d=(f=e(f=this)).offset()).left,right:d.left+f.outerWidth(),top:d.top,bottom:d.top+f.outerHeight()};k=function(e,t){return e.x>t.left&&e.xt.top&&e.yn.longTapThreshold&&b>de&&n.longTap&&!1!==r?r=F(e,t,m):!(1!==Ce&&C||!(isNaN(de)||de=n.threshold),e}function V(){var e=!1;return null!==n.cancelThreshold&&null!==pe&&(e=ee(pe)-de>=n.cancelThreshold),e}function M(){return!(n.maxTimeThreshold&&me>=n.maxTimeThreshold)}function H(){var e=$(),t=z(),r=null===n.pinchThreshold||be>=n.pinchThreshold;return e&&t&&r}function W(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function R(){var e=M(),t=L(),n=$(),r=z();return!V()&&r&&n&&t&&e}function q(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function $(){return Ce===n.fingers||n.fingers===y||!C}function z(){return 0!==Te[0].end.x}function U(){return!!n.tap}function Q(){return!!n.doubleTap}function Y(){if(null==Ie)return!1;var e=oe();return Q()&&e-Ie<=n.doubleTapThreshold}function K(){Ae=0,Oe=0}function X(){var e=!1;return Ae&&oe()-Ae<=n.fingerReleaseThreshold&&(e=!0),e}function G(e){Se&&(!0===e?(Se.on(le,O),Se.on(ce,I),ue&&Se.on(ue,N)):(Se.off(le,O,!1),Se.off(ce,I,!1),ue&&Se.off(ue,N,!1)),Se.data(k+"_intouch",!0===e))}function Z(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,Te[e]=n,n}function J(e){var t=void 0!==e.identifier?e.identifier:0,n=function(e){return Te[e]||null}(t);return null===n&&(n=Z(t,e)),n.last.x=n.end.x,n.last.y=n.end.y,n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function ee(e){return xe[e]?xe[e].distance:void 0}function te(e){return{direction:e,distance:0}}function ne(){return ke-Ee}function re(e,t){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+r*r))}function ie(e,t){if(a=t,(n=e).x==a.x&&n.y==a.y)return c;var n,a,l=function(e,t){var n=e.x-t.x,r=t.y-e.y,i=Math.atan2(r,n),o=Math.round(180*i/Math.PI);return 0>o&&(o=360-Math.abs(o)),o}(e,t);return 45>=l&&l>=0||360>=l&&l>=315?r:l>=135&&225>=l?i:l>45&&135>l?s:o}function oe(){return(new Date).getTime()}n=e.extend({},n);var se=C||E||!n.fallbackToMouseEvents,ae=se?E?T?"MSPointerDown":"pointerdown":"touchstart":"mousedown",le=se?E?T?"MSPointerMove":"pointermove":"touchmove":"mousemove",ce=se?E?T?"MSPointerUp":"pointerup":"touchend":"mouseup",ue=se?E?"mouseleave":null:"mouseleave",fe=E?T?"MSPointerCancel":"pointercancel":"touchcancel",de=0,pe=null,he=null,me=0,ge=0,ve=0,ye=1,be=0,we=0,xe=null,Se=e(t),_e="start",Ce=0,Te={},Ee=0,ke=0,Ae=0,Oe=0,Ie=0,Pe=null,Ne=null;try{Se.on(ae,A),Se.on(fe,P)}catch(t){e.error("events not supported "+ae+","+fe+" on jQuery.swipe")}this.enable=function(){return this.disable(),Se.on(ae,A),Se.on(fe,P),Se},this.disable=function(){return D(),Se},this.destroy=function(){D(),Se.data(k,null),Se=null},this.option=function(t,r){if("object"==typeof t)n=e.extend(n,t);else if(void 0!==n[t]){if(void 0===r)return n[t];n[t]=r}else{if(!t)return n;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var r="left",i="right",o="up",s="down",a="in",l="out",c="none",u="auto",f="swipe",d="pinch",p="tap",h="doubletap",m="longtap",g="horizontal",v="vertical",y="all",b=10,w="start",x="move",S="end",_="cancel",C="ontouchstart"in window,T=window.navigator.msPointerEnabled&&!window.PointerEvent&&!C,E=(window.PointerEvent||window.navigator.msPointerEnabled)&&!C,k="TouchSwipe";e.fn.swipe=function(n){var r=e(this),i=r.data(k);if(i&&"string"==typeof n){if(i[n])return i[n].apply(i,Array.prototype.slice.call(arguments,1));e.error("Method "+n+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof n)i.option.apply(i,arguments);else if(!(i||"object"!=typeof n&&n))return t.apply(this,arguments);return r},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:w,PHASE_MOVE:x,PHASE_END:S,PHASE_CANCEL:_},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:o,DOWN:s,IN:a,OUT:l},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:g,VERTICAL:v,AUTO:u},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:y}},n.amdO.jQuery?(i=[n(311)],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o)):s(e.exports?n(311):jQuery)},895:function(e,t,n){var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(e){return a(c(e),arguments)}function s(e,t){return o.apply(null,[e].concat(t||[]))}function a(e,t){var n,r,s,a,l,c,u,f,d,p=1,h=e.length,m="";for(r=0;r=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?m+=n:(!i.number.test(a.type)||f&&!a.sign?d="":(d=f?"+":"-",n=n.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(d+n).length,l=a.width&&u>0?c.repeat(u):"",m+=a.align?d+n+l:"0"===c?d+l+n:l+d+n)}return m}var l=Object.create(null);function c(e){if(l[e])return l[e];for(var t,n=e,r=[],o=0;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var s=[],a=t[2],c=[];if(null===(c=i.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=i.key_access.exec(a)))s.push(c[1]);else{if(null===(c=i.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}t[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return l[e]=r}t.sprintf=o,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(r=function(){return{sprintf:o,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()},992:function(e,t){var n,r,i;/*! tether 1.4.7 */r=[],n=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var s,a=(s=0,function(){return++s}),l={},c=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",a()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===l[t]&&(l[t]=i(e),_((function(){delete l[t]}))),l[t]};function u(){r&&document.body.removeChild(r),r=null}function f(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=i(e),o=c();return r.top-=o.top,r.left-=o.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function d(e){return e.offsetParent||document.documentElement}var p=null;function h(){if(p)return p;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var i=n-r;return p={width:i,height:i}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(e).replace(n," ");w(e,r)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{g(e,t);var n=b(e)+" "+t;w(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=b(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function b(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function x(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&y(e,n)&&g(e,n)})),t.forEach((function(t){y(e,t)||v(e,t)}))}var S=[],_=function(e){S.push(e)},C=function(){for(var e=void 0;e=S.pop();)e()},T=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n1?n-1:0),i=1;i=t&&t>=e-n}var I,P,N,D,j=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n16)return P=Math.min(P-16,250),void(N=setTimeout(e,250));void 0!==I&&L()-I<10||(null!=N&&(clearTimeout(N),N=null),I=L(),F(),P=L()-I)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,D)}));var V={center:"center",left:"right",right:"left"},M={middle:"middle",top:"bottom",bottom:"top"},H={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},W=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=V[t.left]),"auto"===r&&(r=M[t.top]),{left:n,top:r}},R=function(e){var t=e.left,n=e.top;return void 0!==H[e.left]&&(t=H[e.left]),void 0!==H[e.top]&&(n=H[e.top]),{left:t,top:n}};function q(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;rt.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var i=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,o={width:15,height:.975*i*(i/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},s=0;i<408&&this.target===document.body&&(s=-11e-5*Math.pow(i,2)-.00727*i+22.58),this.target!==document.body&&(o.height=Math.max(o.height,24));var a=this.target.scrollTop/(t.scrollHeight-i);return o.top=a*(i-o.height-s)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(o.height=Math.max(o.height,24)),o}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),B.forEach((function(t,n){t===e&&B.splice(n,1)})),0===B.length&&u()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var i=this._addAttachClasses;e.top&&i.push(this.getClass("element-attached")+"-"+e.top),e.left&&i.push(this.getClass("element-attached")+"-"+e.left),t.top&&i.push(this.getClass("target-attached")+"-"+t.top),t.left&&i.push(this.getClass("target-attached")+"-"+t.left);var o=[];r.forEach((function(e){o.push(n.getClass("element-attached")+"-"+e),o.push(n.getClass("target-attached")+"-"+e)})),_((function(){void 0!==n._addAttachClasses&&(x(n.element,n._addAttachClasses,o),!1!==n.options.addTargetClasses&&x(n.target,n._addAttachClasses,o),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=W(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var i=this.cache("element-bounds",(function(){return f(e.element)})),o=i.width,s=i.height;if(0===o&&0===s&&void 0!==this.lastSize){var a=this.lastSize;o=a.width,s=a.height}else this.lastSize={width:o,height:s};var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),c=l,u=$(R(this.attachment),{width:o,height:s}),p=$(R(r),c),m=$(this.offset,{width:o,height:s}),g=$(this.targetOffset,c);u=q(u,m),p=q(p,g);for(var v=l.left+p.left-u.left,y=l.top+p.top-u.top,b=0;bS.documentElement.clientHeight&&(T=this.cache("scrollbar-size",h),x.viewport.bottom-=T.height),_.innerWidth>S.documentElement.clientWidth&&(T=this.cache("scrollbar-size",h),x.viewport.right-=T.width),-1!==["","static"].indexOf(S.body.style.position)&&-1!==["","static"].indexOf(S.body.parentElement.style.position)||(x.page.bottom=S.body.scrollHeight-y-s,x.page.right=S.body.scrollWidth-v-o),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return d(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return f(t)})),r=getComputedStyle(t),i=n,o={};if(["Top","Left","Bottom","Right"].forEach((function(e){o[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=S.body.scrollWidth-n.left-i.width+o.right,n.bottom=S.body.scrollHeight-n.top-i.height+o.bottom,x.page.top>=n.top+o.top&&x.page.bottom>=n.bottom&&x.page.left>=n.left+o.left&&x.page.right>=n.right){var s=t.scrollTop,a=t.scrollLeft;x.offset={top:x.page.top-n.top+s-o.top,left:x.page.left-n.left+a-o.left}}}(),this.move(x),this.history.unshift(x),this.history.length>3&&this.history.pop(),t&&C(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var i in n[r]={},e[r]){for(var o=!1,s=0;s=0){var m=l.split(" "),y=E(m,2);p=y[0],f=y[1]}else f=p=l;var b=X(t,o);"target"!==p&&"both"!==p||(nb[3]&&"bottom"===g.top&&(n-=u,g.top="top")),"together"===p&&("top"===g.top&&("bottom"===v.top&&nb[3]&&n-(s-u)>=b[1]&&(n-=s-u,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&n+s>b[3]?(n-=u,g.top="top",n-=s,v.top="bottom"):"bottom"===v.top&&nb[3]&&"top"===v.top?(n-=s,v.top="bottom"):nb[2]&&"right"===g.left&&(r-=d,g.left="left")),"together"===f&&(rb[2]&&"right"===g.left?"left"===v.left?(r-=d,g.left="left",r-=a,v.left="right"):"right"===v.left&&(r-=d,g.left="left",r+=a,v.left="left"):"center"===g.left&&(r+a>b[2]&&"left"===v.left?(r-=a,v.left="right"):rb[3]&&"top"===v.top&&(n-=s,v.top="bottom")),"element"!==f&&"both"!==f||(rb[2]&&("left"===v.left?(r-=a,v.left="right"):"center"===v.left&&(r-=a/2,v.left="right"))),"string"==typeof c?c=c.split(",").map((function(e){return e.trim()})):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var w,x,S=[],_=[];n=0?(n=b[1],S.push("top")):_.push("top")),n+s>b[3]&&(c.indexOf("bottom")>=0?(n=b[3]-s,S.push("bottom")):_.push("bottom")),r=0?(r=b[0],S.push("left")):_.push("left")),r+a>b[2]&&(c.indexOf("right")>=0?(r=b[2]-a,S.push("right")):_.push("right")),S.length&&(w=void 0,w=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(w),S.forEach((function(e){h.push(w+"-"+e)}))),_.length&&(x=void 0,x=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(x),_.forEach((function(e){h.push(x+"-"+e)}))),(S.indexOf("left")>=0||S.indexOf("right")>=0)&&(v.left=g.left=!1),(S.indexOf("top")>=0||S.indexOf("bottom")>=0)&&(v.top=g.top=!1),g.top===i.top&&g.left===i.left&&v.top===t.attachment.top&&v.left===t.attachment.left||(t.updateAttachClasses(v,g),t.trigger("update",{attachment:v,targetAttachment:g}))})),_((function(){!1!==t.options.addTargetClasses&&x(t.target,h,p),x(t.element,h,p)})),{top:n,left:r}}});var G,f=(G=n.Utils).getBounds,x=G.updateClasses;return _=G.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,i=this.cache("element-bounds",(function(){return f(t.element)})),o=i.height,s=i.width,a=this.getTargetBounds(),l=n+o,c=r+s,u=[];n<=a.bottom&&l>=a.top&&["left","right"].forEach((function(e){var t=a[e];t!==r&&t!==c||u.push(e)})),r<=a.right&&c>=a.left&&["top","bottom"].forEach((function(e){var t=a[e];t!==n&&t!==l||u.push(e)}));var d=[],p=[],h=["left","top","right","bottom"];return d.push(this.getClass("abutted")),h.forEach((function(e){d.push(t.getClass("abutted")+"-"+e)})),u.length&&p.push(this.getClass("abutted")),u.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),_((function(){!1!==t.options.addTargetClasses&&x(t.target,p,d),x(t.element,p,d)})),!0}}),E=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var i=void 0,o=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var s=E(r,2);i=s[0],o=s[1],i=parseFloat(i,10),o=parseFloat(o,10)}else i=r.top,o=r.left;return{top:t+=i,left:n+=o}}}}),Y},void 0===(i="function"==typeof n?n.apply(t,r):n)||(e.exports=i)},593:function(e,t,n){var r,i;/*! VelocityJS.org (1.5.0). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */ /*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */!function(e){"use strict";if(!e.jQuery){var t=function(e,n){return new t.fn.init(e,n)};t.isWindow=function(e){return e&&e===e.window},t.type=function(e){return e?"object"==typeof e||"function"==typeof e?r[o.call(e)]||"object":typeof e:e+""},t.isArray=Array.isArray||function(e){return"array"===t.type(e)},t.isPlainObject=function(e){var n;if(!e||"object"!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(n in e);return void 0===n||i.call(e,n)},t.each=function(e,t,n){var r=0,i=e.length,o=l(e);if(n){if(o)for(;r0&&n-1 in e))}}(window),function(o){"use strict";"object"==typeof e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}((function(){"use strict";return function(e,t,n,r){var i,o=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]>=0?t:Math.max(0,r+t),a=(n<0?r+n:Math.min(n,r))-s;if(a>0)if(o=new Array(a),this.charAt)for(i=0;i=0}:function(e,t){for(var n=0;nf&&Math.abs(a.v)>f;);return o?function(e){return c[e*(c.length-1)|0]}:u}}();g.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},f.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(e,t){g.Easings[t[0]]=E.apply(null,t[1])}));var y=g.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){o&&!(o>9)||g.State.isGingerbread||(y.Lists.transformsBase=y.Lists.transformsBase.concat(y.Lists.transforms3D));for(var e=0;e8)&&3===s.split(" ").length&&(s+=" 1"),s;case"inject":return/^rgb/.test(i)?i:(o<=8?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(o<=8?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function n(e,t,n){if("border-box"===y.getPropertyValue(t,"boxSizing").toString().toLowerCase()===(n||!1)){var r,i,o=0,s="width"===e?["Left","Right"]:["Top","Bottom"],a=["padding"+s[0],"padding"+s[1],"border"+s[0]+"Width","border"+s[1]+"Width"];for(r=0;r=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,r,i,s){var a=n;if("scroll"===n)s.container?s.container["scroll"+s.direction]=r:"Left"===s.direction?t.scrollTo(r,s.alternateValue):t.scrollTo(s.alternateValue,r);else if(y.Normalizations.registered[n]&&"transform"===y.Normalizations.registered[n]("name",e))y.Normalizations.registered[n]("inject",e,r),a="transform",r=S(e).transformCache[n];else{if(y.Hooks.registered[n]){var l=n,c=y.Hooks.getRoot(n);i=i||y.getPropertyValue(e,c),r=y.Hooks.injectValue(l,r,i),n=c}if(y.Normalizations.registered[n]&&(r=y.Normalizations.registered[n]("inject",e,r),n=y.Normalizations.registered[n]("name",e)),a=y.Names.prefixCheck(n)[0],o<=8)try{e.style[a]=r}catch(e){g.debug&&console.log("Browser does not support ["+r+"] for ["+a+"]")}else{var u=S(e);u&&u.isSVG&&y.Names.SVGAttribute(n)?e.setAttribute(n,r):e.style[a]=r}g.debug>=2&&console.log("Set "+n+" ("+a+"): "+r)}return[a,r]},flushTransformCache:function(e){var t="",n=S(e);if((o||g.State.isAndroid&&!g.State.isChrome)&&n&&n.isSVG){var r=function(t){return parseFloat(y.getPropertyValue(e,t))},i={translate:[r("translateX"),r("translateY")],skewX:[r("skewX")],skewY:[r("skewY")],scale:1!==r("scale")?[r("scale"),r("scale")]:[r("scaleX"),r("scaleY")],rotate:[r("rotateZ"),0,0]};f.each(S(e).transformCache,(function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),i[e]&&(t+=e+"("+i[e].join(" ")+") ",delete i[e])}))}else{var s,a;f.each(S(e).transformCache,(function(n){if(s=S(e).transformCache[n],"transformPerspective"===n)return a=s,!0;9===o&&"rotateZ"===n&&(n="rotate"),t+=n+s+" "})),a&&(t="perspective"+a+" "+t)}y.setPropertyValue(e,"transform",t)}};y.Hooks.register(),y.Normalizations.register(),g.hook=function(e,t,n){var i;return e=u(e),f.each(e,(function(e,o){if(S(o)===r&&g.init(o),n===r)i===r&&(i=y.getPropertyValue(o,t));else{var s=y.setPropertyValue(o,t,n);"transform"===s[0]&&g.CSS.flushTransformCache(o),i=s}})),i};var b=function(){var e;function i(){return o?w.promise||null:s}var o,s,a,l,p,m,v=arguments[0]&&(arguments[0].p||f.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||d.isString(arguments[0].properties));d.isWrapped(this)?(o=!1,a=0,l=this,s=this):(o=!0,a=1,l=v?arguments[0].elements||arguments[0].e:arguments[0]);var w={promise:null,resolver:null,rejecter:null};if(o&&g.Promise&&(w.promise=new g.Promise((function(e,t){w.resolver=e,w.rejecter=t}))),v?(p=arguments[0].properties||arguments[0].p,m=arguments[0].options||arguments[0].o):(p=arguments[a],m=arguments[a+1]),l=u(l)){var x,T=l.length,E=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(p)&&!f.isPlainObject(m)){var I=a+1;m={};for(var P=I;P=4&&"("===D?I++:(I&&I<5||I>=4&&")"===D&&--I<5)&&(I=0),0===P&&"r"===D||1===P&&"g"===D||2===P&&"b"===D||3===P&&"a"===D||P>=3&&"("===D?(3===P&&"a"===D&&(N=1),P++):N&&","===D?++N>3&&(P=N=0):(N&&P<(N?5:4)||P>=(N?4:3)&&")"===D&&--P<(N?5:4))&&(P=N=0)}}E===w.length&&k===m.length||(g.debug&&console.error('Trying to pattern match mis-matched strings ["'+m+'", "'+w+'"]'),l=r),l&&(A.length?(g.debug&&console.log('Pattern found "'+l+'" -> ',A,O,"["+w+","+m+"]"),w=A,m=O,S=_=""):l=r)}l||(w=(x=T(i,w))[0],_=x[1],m=(x=T(i,m))[0].replace(/^([+-\/*])=/,(function(e,t){return C=t,""})),S=x[1],w=parseFloat(w)||0,m=parseFloat(m)||0,"%"===S&&(/^(fontSize|lineHeight)$/.test(i)?(m/=100,S="em"):/^scale/.test(i)?(m/=100,S=""):/(Red|Green|Blue)$/i.test(i)&&(m=m/100*255,S="")));if(/[\/*]/.test(C))S=_;else if(_!==S&&0!==w)if(0===m)S=_;else{o=o||function(){var r={myParent:e.parentNode||n.body,position:y.getPropertyValue(e,"position"),fontSize:y.getPropertyValue(e,"fontSize")},i=r.position===L.lastPosition&&r.myParent===L.lastParent,o=r.fontSize===L.lastFontSize;L.lastParent=r.myParent,L.lastPosition=r.position,L.lastFontSize=r.fontSize;var s=100,a={};if(o&&i)a.emToPx=L.lastEmToPx,a.percentToPxWidth=L.lastPercentToPxWidth,a.percentToPxHeight=L.lastPercentToPxHeight;else{var l=h&&h.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");g.init(l),r.myParent.appendChild(l),f.each(["overflow","overflowX","overflowY"],(function(e,t){g.CSS.setPropertyValue(l,t,"hidden")})),g.CSS.setPropertyValue(l,"position",r.position),g.CSS.setPropertyValue(l,"fontSize",r.fontSize),g.CSS.setPropertyValue(l,"boxSizing","content-box"),f.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(e,t){g.CSS.setPropertyValue(l,t,"100%")})),g.CSS.setPropertyValue(l,"paddingLeft","100em"),a.percentToPxWidth=L.lastPercentToPxWidth=(parseFloat(y.getPropertyValue(l,"width",null,!0))||1)/s,a.percentToPxHeight=L.lastPercentToPxHeight=(parseFloat(y.getPropertyValue(l,"height",null,!0))||1)/s,a.emToPx=L.lastEmToPx=(parseFloat(y.getPropertyValue(l,"paddingLeft"))||1)/s,r.myParent.removeChild(l)}return null===L.remToPx&&(L.remToPx=parseFloat(y.getPropertyValue(n.body,"fontSize"))||16),null===L.vwToPx&&(L.vwToPx=parseFloat(t.innerWidth)/100,L.vhToPx=parseFloat(t.innerHeight)/100),a.remToPx=L.remToPx,a.vwToPx=L.vwToPx,a.vhToPx=L.vhToPx,g.debug>=1&&console.log("Unit ratios: "+JSON.stringify(a),e),a}();var $=/margin|padding|left|right|width|text|word|letter/i.test(i)||/X$/.test(i)||"x"===i?"x":"y";switch(_){case"%":w*="x"===$?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:w*=o[_+"ToPx"]}switch(S){case"%":w*=1/("x"===$?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:w*=1/o[S+"ToPx"]}}switch(C){case"+":m=w+m;break;case"-":m=w-m;break;case"*":m*=w;break;case"/":m=w/m}u[i]={rootPropertyValue:p,startValue:w,currentValue:w,endValue:m,unitType:S,easing:b},l&&(u[i].pattern=l),g.debug&&console.log("tweensContainer ("+i+"): "+JSON.stringify(u[i]),e)}else g.debug&&console.log("Skipping ["+c+"] due to a lack of browser support.")};for(var W in p)if(p.hasOwnProperty(W)){var R=y.Names.camelCase(W),q=(b=p[W],_=void 0,C=void 0,O=void 0,I=void 0,d.isFunction(b)&&(b=b.call(e,i,T)),d.isArray(b)?(C=b[0],!d.isArray(b[1])&&/^[\d-]/.test(b[1])||d.isFunction(b[1])||y.RegEx.isHex.test(b[1])?I=b[1]:d.isString(b[1])&&!y.RegEx.isHex.test(b[1])&&g.Easings[b[1]]||d.isArray(b[1])?(O=_?b[1]:k(b[1],a.duration),I=b[2]):I=b[1]||b[2]):C=b,_||(O=O||a.easing),d.isFunction(C)&&(C=C.call(e,i,T)),d.isFunction(I)&&(I=I.call(e,i,T)),[C||0,O,I]);if(c(y.Lists.colors)){var $=q[0],z=q[1],U=q[2];if(y.RegEx.isHex.test($)){for(var Q=["Red","Green","Blue"],Y=y.Values.hexToRgb($),K=U?y.Values.hexToRgb(U):r,X=0;X0?i=s:n=s}while(Math.abs(o)>a&&++c=s?b(t,a):0===l?a:x(t,n,n+u)}var _=!1;function C(){_=!0,e===n&&r===i||w()}var T=function(t){return _||C(),e===n&&r===i?t:0===t?0:1===t?1:v(S(t),n,i)};T.getControlPoints=function(){return[{x:e,y:n},{x:r,y:i}]};var E="generateBezier("+[e,n,r,i]+")";return T.toString=function(){return E},T}function k(e,t){var n=e;return d.isString(e)?g.Easings[e]||(n=!1):n=d.isArray(e)&&1===e.length?T.apply(null,e):d.isArray(e)&&2===e.length?v.apply(null,e.concat([t])):!(!d.isArray(e)||4!==e.length)&&E.apply(null,e),!1===n&&(n=g.Easings[g.defaults.easing]?g.defaults.easing:m),n}function A(e){if(e){var t=g.timestamp&&!0!==e?e:a.now(),n=g.State.calls.length;n>1e4&&(g.State.calls=function(e){for(var t=-1,n=e?e.length:0,r=[];++t{const n=i()(`#${t.id.replace("_desktop_","_mobile_")}`);n.length&&o(i()(t),n)})):i()("*[id^='_mobile_']").each(((e,t)=>{const n=i()(`#${t.id.replace("_mobile_","_desktop_")}`);n.length&&o(i()(t),n)})),t().emit("responsive update",{mobile:t().responsive.mobile})}t().themeSelectors={product:{tabs:".tabs .nav-link",activeNavClass:"js-product-nav-active",activeTabClass:"js-product-tab-active",activeTabs:".tabs .nav-link.active, .js-product-nav-active",imagesModal:".js-product-images-modal",thumb:".js-thumb",thumbContainer:".thumb-container, .js-thumb-container",arrows:".js-arrows",selected:".selected, .js-thumb-selected",modalProductCover:".js-modal-product-cover",cover:".js-qv-product-cover",customizationModal:".js-customization-modal"},listing:{searchFilterToggler:"#search_filter_toggler, .js-search-toggler",searchFiltersWrapper:"#search_filters_wrapper",searchFilterControls:"#search_filter_controls",searchFilters:"#search_filters",activeSearchFilters:"#js-active-search-filters",listTop:"#js-product-list-top",product:".js-product",list:"#js-product-list",listBottom:"#js-product-list-bottom",listHeader:"#js-product-list-header",searchFiltersClearAll:".js-search-filters-clear-all",searchLink:".js-search-link"},order:{returnForm:"#order-return-form, .js-order-return-form"},arrowDown:".arrow-down, .js-arrow-down",arrowUp:".arrow-up, .js-arrow-up",clear:".clear",fileInput:".js-file-input",contentWrapper:"#content-wrapper, .js-content-wrapper",footer:"#footer, .js-footer",modalContent:".js-modal-content",modal:"#modal, .js-checkout-modal",touchspin:".js-touchspin",checkout:{termsLink:".js-terms a",giftCheckbox:".js-gift-checkbox",imagesLink:".card-block .cart-summary-products p a, .js-show-details",carrierExtraContent:".carrier-extra-content, .js-carrier-extra-content",btn:".checkout a"},cart:{productLineQty:".js-cart-line-product-quantity",quickview:".quickview",touchspin:".bootstrap-touchspin",promoCode:"#promo-code",displayPromo:".display-promo",promoCodeButton:".promo-code-button",discountCode:".js-discount .code",discountName:"[name=discount_name]",actions:'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]'},notifications:{dangerAlert:"#notifications article.alert-danger",container:"#notifications .notifications-container"},passwordPolicy:{template:"#password-feedback",hint:".js-hint-password",container:".password-strength-feedback",strengthText:".password-strength-text",requirementScore:".password-requirements-score",requirementLength:".password-requirements-length",requirementScoreIcon:".password-requirements-score i",requirementLengthIcon:".password-requirements-length i",progressBar:".progress-bar",inputColumn:".js-input-column"}},i()(document).ready((()=>{t().emit("themeSelectorsInit")})), /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ t().responsive=t().responsive||{},t().responsive.current_width=window.innerWidth,t().responsive.min_width=768,t().responsive.mobile=t().responsive.current_width{const e=t().responsive.current_width,n=t().responsive.min_width,r=window.innerWidth,i=e>=n&&r=n;t().responsive.current_width=r,t().responsive.mobile=t().responsive.current_width{t().responsive.mobile&&s()})),i()(document).ready((()=>{1===i()("body#checkout").length&&(i()(t().themeSelectors.checkout.termsLink).on("click",(e=>{e.preventDefault();let n=i()(e.target).attr("href");n&&(n+="?content_only=1",i().get(n,(e=>{i()(t().themeSelectors.modal).find(t().themeSelectors.modalContent).html(i()(e).find(".page-cms").contents())})).fail((e=>{t().emit("handleError",{eventType:"clickTerms",resp:e})}))),i()(t().themeSelectors.modal).modal("show")})),i()(t().themeSelectors.checkout.giftCheckbox).on("click",(()=>{i()("#gift").slideToggle()})),i()(t().themeSelectors.checkout.imagesLink).on("click",(function(){const e=i()(this).find("i.material-icons");"expand_more"===e.text()?e.text("expand_less"):e.text("expand_more")}))),t().on("updatedDeliveryForm",(e=>{void 0!==e.deliveryOption&&0!==e.deliveryOption.length&&(i()(t().themeSelectors.checkout.carrierExtraContent).hide(),e.deliveryOption.next(t().themeSelectors.checkout.carrierExtraContent).slideDown())}))})),i()(document).ready((function(){i()("body#order-detail")&&i()(`${t().themeSelectors.order.returnForm} table thead input[type=checkbox]`).on("click",(function(){const e=i()(this).prop("checked");i()(`${t().themeSelectors.order.returnForm} table tbody input[type=checkbox]`).each(((t,n)=>{i()(n).prop("checked",e)}))}))}));n(593); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ function a(e,t){if(void 0===t)return;const n=i()(e).siblings('source[type="image/webp"]'),r=i()(e).siblings('source[type="image/avif"]');void 0!==t.webp&&n.length&&n.attr("srcset",t.webp),void 0!==t.avif&&r.length&&r.attr("srcset",t.avif)} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class l{init(){i()(".js-product-miniature").each(((e,t)=>{if(i()(t).find(".color").length>5){let e=0;i()(t).find(".color").each(((t,n)=>{t>4&&(i()(n).hide(),e+=1)})),i()(t).find(".js-count").append(`+${e}`)}}))}} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ i()(document).ready((()=>{const e=e=>{const t=i()(".js-qv-product-images"),n=i()(".js-qv-product-images li img").height()+20,r=t.position().top;t.velocity({translateY:"up"===e?r+n:r-n},(()=>{t.position().top>=0?i()(".arrow-up").css("opacity",".2"):t.position().top+t.height()<=i()(".js-qv-mask").height()&&i()(".arrow-down").css("opacity",".2")}))};t().on("clickQuickView",(n=>{const r={action:"quickview",id_product:n.dataset.idProduct,id_product_attribute:n.dataset.idProductAttribute};i().post(t().urls.pages.product,r,null,"json").then((n=>{i()("body").append(n.quickview_html);const r=i()(`#quickview-modal-${n.product.id}-${n.product.id_product_attribute}`);r.modal("show"),(n=>{const r=i()(t().themeSelectors.product.arrows),o=n.find(".js-qv-product-images");i()(t().themeSelectors.product.thumb).on("click",(e=>{i()(t().themeSelectors.product.thumb).hasClass("selected")&&i()(t().themeSelectors.product.thumb).removeClass("selected"),i()(e.currentTarget).addClass("selected"),i()(t().themeSelectors.product.cover).attr("src",i()(e.target).data("image-large-src")),i()(t().themeSelectors.product.cover).attr("alt",i()(e.target).attr("alt")),i()(t().themeSelectors.product.cover).attr("title",i()(e.target).attr("title")),a(i()(t().themeSelectors.product.cover),i()(e.target).data("image-large-sources"))})),o.find("li").length<=4?r.hide():r.on("click",(n=>{i()(n.target).hasClass("arrow-up")&&i()(".js-qv-product-images").position().top<0?(e("up"),i()(t().themeSelectors.arrowDown).css("opacity","1")):i()(n.target).hasClass("arrow-down")&&o.position().top+o.height()>i()(".js-qv-mask").height()&&(e("down"),i()(t().themeSelectors.arrowUp).css("opacity","1"))})),n.find(t().selectors.quantityWanted).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6}),i()(t().themeSelectors.touchspin).off("touchstart.touchspin")})(r),r.on("hidden.bs.modal",(()=>{r.remove()}))})).fail((e=>{t().emit("handleError",{eventType:"clickQuickView",resp:e})}))})),i()("body").on("click",t().themeSelectors.listing.searchFilterToggler,(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.footer).addClass("hidden-sm-down")})),i()(`${t().themeSelectors.listing.searchFilterControls} ${t().themeSelectors.clear}`).on("click",(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.footer).removeClass("hidden-sm-down")})),i()(`${t().themeSelectors.listing.searchFilterControls} .ok`).on("click",(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.footer).removeClass("hidden-sm-down")}));const n=function(e){if(void 0!==e.target.dataset.searchUrl)return e.target.dataset.searchUrl;if(void 0===i()(e.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return i()(e.target).parent()[0].dataset.searchUrl};i()("body").on("change",`${t().themeSelectors.listing.searchFilters} input[data-search-url]`,(e=>{t().emit("updateFacets",n(e))})),i()("body").on("click",t().themeSelectors.listing.searchFiltersClearAll,(e=>{t().emit("updateFacets",n(e))})),i()("body").on("click",t().themeSelectors.listing.searchLink,(e=>{e.preventDefault(),t().emit("updateFacets",i()(e.target).closest("a").get(0).href)})),window.addEventListener("popstate",(e=>{e.state&&e.state.current_url&&(window.location.href=e.state.current_url)})),i()("body").on("change",`${t().themeSelectors.listing.searchFilters} select`,(e=>{const n=i()(e.target).closest("form");t().emit("updateFacets",`?${n.serialize()}`)})),t().on("updateProductList",(e=>{!function(e){i()(t().themeSelectors.listing.searchFilters).replaceWith(e.rendered_facets),i()(t().themeSelectors.listing.activeSearchFilters).replaceWith(e.rendered_active_filters),i()(t().themeSelectors.listing.listTop).replaceWith(e.rendered_products_top);const n=i()(e.rendered_products),r=i()(t().themeSelectors.listing.product);r.length>0?r.removeClass().addClass(r.first().attr("class")):r.removeClass().addClass(n.first().attr("class")),i()(t().themeSelectors.listing.list).replaceWith(n),i()(t().themeSelectors.listing.listBottom).replaceWith(e.rendered_products_bottom),e.rendered_products_header&&i()(t().themeSelectors.listing.listHeader).replaceWith(e.rendered_products_header),(new l).init()}(e),window.scrollTo(0,0)}))})); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class c{init(){const e=i()(".js-modal-arrows"),t=i()(".js-modal-product-images");i()("body").on("click",".js-modal-thumb",(e=>{i()(".js-modal-thumb").hasClass("selected")&&i()(".js-modal-thumb").removeClass("selected"),i()(e.currentTarget).addClass("selected"),i()(prestashop.themeSelectors.product.modalProductCover).attr("src",i()(e.target).data("image-large-src")),i()(prestashop.themeSelectors.product.modalProductCover).attr("title",i()(e.target).attr("title")),i()(prestashop.themeSelectors.product.modalProductCover).attr("alt",i()(e.target).attr("alt")),a(i()(prestashop.themeSelectors.product.modalProductCover),i()(e.target).data("image-large-sources"))})).on("click","aside#thumbnails",(e=>{"thumbnails"===e.target.id&&i()("#product-modal").modal("hide")})),i()(".js-modal-product-images li").length<=5?e.css("opacity",".2"):e.on("click",(e=>{i()(e.target).hasClass("arrow-up")&&t.position().top<0?(this.move("up"),i()(".js-modal-arrow-down").css("opacity","1")):i()(e.target).hasClass("arrow-down")&&t.position().top+t.height()>i()(".js-modal-mask").height()&&(this.move("down"),i()(".js-modal-arrow-up").css("opacity","1"))}))}move(e){const t=i()(".js-modal-product-images"),n=i()(".js-modal-product-images li img").height()+10,r=t.position().top;t.velocity({translateY:"up"===e?r+n:r-n},(()=>{t.position().top>=0?i()(".js-modal-arrow-up").css("opacity",".2"):t.position().top+t.height()<=i()(".js-modal-mask").height()&&i()(".js-modal-arrow-down").css("opacity",".2")}))}} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ i()(document).ready((()=>{function e(){const e=i()(t().themeSelectors.product.cover),n=i()(t().themeSelectors.product.modalProductCover);let r=i()(t().themeSelectors.product.selected);const o=(r,i)=>{const o=i.find(t().themeSelectors.product.thumb);r.removeClass("selected"),o.addClass("selected"),n.prop("src",o.data("image-large-src")),e.prop("src",o.data("image-medium-src")),e.attr("title",o.attr("title")),n.attr("title",o.attr("title")),e.attr("alt",o.attr("alt")),n.attr("alt",o.attr("alt")),a(e,o.data("image-medium-sources")),a(n,o.data("image-large-sources"))};i()(t().themeSelectors.product.thumb).on("click",(e=>{r=i()(t().themeSelectors.product.selected),o(r,i()(e.target).closest(t().themeSelectors.product.thumbContainer))})),e.swipe({swipe:(e,n)=>{r=i()(t().themeSelectors.product.selected);const s=r.closest(t().themeSelectors.product.thumbContainer);"right"===n?s.prev().length>0?o(r,s.prev()):s.next().length>0&&o(r,s.next()):"left"===n&&(s.next().length>0?o(r,s.next()):s.prev().length>0&&o(r,s.prev()))},allowPageScroll:"vertical"})}function n(){i()("#main .js-qv-product-images li").length>2?(i()("#main .js-qv-mask").addClass("scroll"),i()(".scroll-box-arrows").addClass("scroll"),i()("#main .js-qv-mask").scrollbox({direction:"h",distance:113,autoPlay:!1}),i()(".scroll-box-arrows .left").click((()=>{i()("#main .js-qv-mask").trigger("backward")})),i()(".scroll-box-arrows .right").click((()=>{i()("#main .js-qv-mask").trigger("forward")}))):(i()("#main .js-qv-mask").removeClass("scroll"),i()(".scroll-box-arrows").removeClass("scroll"))}function r(){i()(t().themeSelectors.fileInput).on("change",(e=>{const t=i()(e.currentTarget)[0],n=t?t.files[0]:null;t&&n&&i()(t).prev().text(n.name)}))}!function(){const e=i()(t().selectors.quantityWanted);e.TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(e.attr("min"),10),max:1e6}),i()(t().themeSelectors.touchspin).off("touchstart.touchspin"),e.on("focusout",(()=>{(""===e.val()||e.val(){""!==e.val()&&(i()(n.currentTarget).trigger("touchspin.stopspin"),t().emit("updateProduct",{eventType:"updatedProductQuantity",event:n}))}))}(),r(),e(),n(),function(){const e=i()(t().themeSelectors.product.tabs);e.on("show.bs.tab",(e=>{const n=i()(e.target);n.addClass(t().themeSelectors.product.activeNavClass),i()(n.attr("href")).addClass(t().themeSelectors.product.activeTabClass)})),e.on("hide.bs.tab",(e=>{const n=i()(e.target);n.removeClass(t().themeSelectors.product.activeNavClass),i()(n.attr("href")).removeClass(t().themeSelectors.product.activeTabClass)}))}(),t().on("updatedProduct",(o=>{if(r(),e(),o&&o.product_minimal_quantity){const e=parseInt(o.product_minimal_quantity,10),n=t().selectors.quantityWanted;i()(n).trigger("touchspin.updatesettings",{min:e})}n(),i()(i()(t().themeSelectors.product.activeTabs).attr("href")).addClass("active").removeClass("fade"),i()(t().themeSelectors.product.imagesModal).replaceWith(o.product_images_modal);(new c).init()}))})),t().cart=t().cart||{},t().cart.active_inputs=null;const u='input[name="product-quantity-spin"]';let f=!1,d=!1,p="";const h=()=>{const e=i()(t().themeSelectors.checkout.btn);if((i()(t().themeSelectors.notifications.dangerAlert).length||""!==p&&!f)&&e.addClass("disabled"),""!==p){const n=`\n \n `;i()(t().themeSelectors.notifications.container).html(n),p="",d=!1,f&&e.removeClass("disabled")}else!f&&d&&(f=!1,d=!1,i()(t().themeSelectors.notifications.container).html(""),e.removeClass("disabled"))},m=e=>{const{hasError:t,errors:n}=e;f=null!=t&&t;const r=null!=n?n:"";p=r instanceof Array?r.join(" "):r,d=!0};function g(){i().each(i()(u),((e,t)=>{i()(t).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:parseInt(i()(t).attr("min"),10),max:1e6})})),i()(t().themeSelectors.touchspin).off("touchstart.touchspin"),h()}const v=e=>!window.shouldPreventModal||(e.preventDefault(),!1);i()(document).ready((()=>{const e=t().themeSelectors.cart.productLineQty,n=[];t().on("updateCart",(()=>{i()(t().themeSelectors.cart.quickview).modal("hide")})),t().on("updatedCart",(()=>{window.shouldPreventModal=!1,i()(t().themeSelectors.product.customizationModal).on("show.bs.modal",(e=>{v(e)})),g()})),g();const r=i()("body");function o(e){const t=e.split("-");let n,r,i="";for(n=0;n{let e;for(;n.length>0;)e=n.pop(),e.abort()};i()(t().themeSelectors.product.customizationModal).on("show.bs.modal",(e=>{v(e)}));function l(e){const r=i()(e.currentTarget),o=r.data("update-url"),s=r.attr("value"),l=r.val();if(l!=parseInt(l,10)||l<0||isNaN(l))return window.shouldPreventModal=!1,void r.val(s);const c=l-s;var u,f;0!==c&&("0"===l?r.closest(".product-line-actions").find('[data-link-action="delete-from-cart"]').click():(r.attr("value",l),function(e,r,o){a(),window.shouldPreventModal=!0,i().ajax({url:e,method:"POST",data:r,dataType:"json",beforeSend(e){n.push(e)}}).then((e=>{m(e),o.val(e.quantity);const n=o&&o.dataset?o.dataset:e;t().emit("updateCart",{reason:n,resp:e})})).fail((e=>{t().emit("handleError",{eventType:"updateProductQuantityInCart",resp:e})}))}(o,(u=c,{ajax:"1",qty:Math.abs(u),action:"update",op:(f=u,f>0?"up":"down")}),r)))}r.on("click",t().themeSelectors.cart.actions,(e=>{a(),window.shouldPreventModal=!0,e.preventDefault();const r=i()(e.currentTarget),{dataset:o}=e.currentTarget,l=s(r,e.namespace);l&&i().ajax({url:l.url,method:"POST",data:{ajax:"1",action:"update"},dataType:"json",beforeSend(e){n.push(e)}}).then((e=>{const n=(s=r,i()(s.parents(t().themeSelectors.cart.touchspin).find("input")));var s;m(e),n.val(e.quantity),t().emit("updateCart",{reason:o,resp:e})})).fail((e=>{t().emit("handleError",{eventType:"updateProductInCart",resp:e,cartAction:l.type})}))})),r.on("touchspin.on.stopspin",u, /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ function(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}}(l)),r.on("focusout keyup",e,(e=>"keyup"===e.type?(13===e.keyCode&&(d=!0,l(e)),!1):(d||l(e),!1)));r.on("hidden.bs.collapse",t().themeSelectors.cart.promoCode,(()=>{i()(t().themeSelectors.cart.displayPromo).show(400)})),r.on("click",t().themeSelectors.cart.promoCodeButton,(e=>{e.preventDefault(),i()(t().themeSelectors.cart.promoCode).collapse("toggle")})),r.on("click",t().themeSelectors.cart.displayPromo,(e=>{i()(e.currentTarget).hide(400)})),r.on("click",t().themeSelectors.cart.discountCode,(e=>{e.stopPropagation();const n=i()(e.currentTarget);return i()(t().themeSelectors.cart.discountName).val(n.text()),i()(t().themeSelectors.cart.promoCode).collapse("show"),i()(t().themeSelectors.cart.displayPromo).hide(400),!1}))}));var y=n(151),b=n.n(y); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class w{constructor(e){this.el=e}init(){this.el.on("show.bs.dropdown",((e,t)=>{t?i()(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideDown():i()(e.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()})),this.el.on("hide.bs.dropdown",((e,t)=>{t?i()(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideUp():i()(e.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()})),this.el.find("select.link").each(((e,t)=>{i()(t).on("change",(function(){window.location=i()(this).val()}))}))}} /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class x{init(){this.parentFocus(),this.togglePasswordVisibility()}parentFocus(){i()(".js-child-focus").on("focus",(function(){i()(this).closest(".js-parent-focus").addClass("focus")})),i()(".js-child-focus").on("focusout",(function(){i()(this).closest(".js-parent-focus").removeClass("focus")}))}togglePasswordVisibility(){i()('button[data-action="show-password"]').on("click",(function(){const e=i()(this).closest(".input-group").children("input.js-visible-password");"password"===e.attr("type")?(e.attr("type","text"),i()(this).text(i()(this).data("textHide"))):(e.attr("type","password"),i()(this).text(i()(this).data("textShow")))}))}}var S=n(895); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ const{passwordPolicy:_}=prestashop.themeSelectors,C=(e,t,n)=>{return r=void 0,i=null,o=function*(){const{prestashop:r}=window,i=e.value,o=t.querySelector(_.requirementScoreIcon),s=yield r.checkPasswordScore(i),a=(e=>{switch(e){case 0:case 1:return{color:"bg-danger"};case 2:return{color:"bg-warning"};case 3:case 4:return{color:"bg-success"};default:throw new Error("Invalid password strength indicator.")}})(s.score),l=i.length,c=[];$(e).popover("dispose"),t.style.display=""===i?"none":"block",""!==s.feedback.warning&&s.feedback.warning in n&&c.push(n[s.feedback.warning]),s.feedback.suggestions.forEach((e=>{e in n&&c.push(n[e])})),$(e).popover({html:!0,placement:"top",content:c.join("
")}).popover("show");const u=l>=parseInt(e.dataset.minlength,10)&&l<=parseInt(e.dataset.maxlength,10),f=parseInt(e.dataset.minscore,10)<=s.score;t.querySelector(_.requirementLengthIcon).classList.toggle("text-success",u),o.classList.toggle("text-success",f),e.classList.remove("border-success","border-danger"),e.classList.add(f&&u?"border-success":"border-danger"),e.classList.add("form-control","border");const d=20*s.score+20,p=t.querySelector(_.progressBar);p&&(p.style.width=`${d}%`,p.classList.remove("bg-success","bg-danger","bg-warning"),p.classList.add(a.color))},new Promise(((e,t)=>{var n=e=>{try{a(o.next(e))}catch(e){t(e)}},s=e=>{try{a(o.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,s);a((o=o.apply(r,i)).next())}));var r,i,o};var T=e=>{document.querySelectorAll(e).forEach((e=>{const t=null==e?void 0:e.querySelector(_.inputColumn),n=null==e?void 0:e.querySelector("input"),r=document.createElement("div"),i=document.querySelector(_.template);let o;if(i&&e&&t&&n&&(r.innerHTML=i.innerHTML,t.append(r),o=e.querySelector(_.container),o)){const e=document.querySelector(_.hint);if(e){const t=JSON.parse(e.innerHTML),r=o.querySelector(_.requirementLength),i=o.querySelector(_.requirementScore),s=null==r?void 0:r.querySelector("span"),a=null==i?void 0:i.querySelector("span");s&&r&&r.dataset.translation&&(s.innerText=(0,S.sprintf)(r.dataset.translation,n.dataset.minlength,n.dataset.maxlength)),a&&i&&i.dataset.translation&&(a.innerText=(0,S.sprintf)(i.dataset.translation,t[n.dataset.minscore])),n.addEventListener("keyup",(()=>C(n,o,t))),n.addEventListener("blur",(()=>{$(n).popover("dispose")}))}}return e?{element:e}:{error:new Error("The password policy elements are undefined.")}}))}; /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ class E extends w{init(){let e;const n=this;this.el.find("li").on("mouseenter mouseleave",(t=>{if(this.el.parent().hasClass("mobile"))return;const n=i()(t.currentTarget).attr("class");if(e!==n){const n=Array.prototype.slice.call(t.currentTarget.classList).map((e=>"string"==typeof e&&`.${e}`));e=n.join(""),e&&0===i()(t.target).data("depth")&&i()(`${e} .js-sub-menu`).css({top:i()(`${e}`).height()+i()(`${e}`).position().top})}})),i()("#menu-icon").on("click",(()=>{i()("#mobile_top_menu_wrapper").toggle(),n.toggleMobileMenu()})),this.el.on("click",(e=>{this.el.parent().hasClass("mobile")||e.stopPropagation()})),t().on("responsive update",(()=>{i()(".js-sub-menu").removeAttr("style"),n.toggleMobileMenu()})),super.init()}toggleMobileMenu(){i()("#header").toggleClass("is-open"),i()("#mobile_top_menu_wrapper").is(":visible")?i()("#notifications, #wrapper, #footer").hide():i()("#notifications, #wrapper, #footer").show()}}n(411),n(861); /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ t().blockcart=t().blockcart||{},t().blockcart.showModal=e=>{function n(){return i()("#blockcart-modal")}let r=n();r.length&&r.remove(),i()("body").append(e),r=n(),r.modal("show").on("hidden.bs.modal",(e=>{t().emit("updateProduct",{reason:e.currentTarget.dataset,event:e})}))}; /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ for(const e in b().prototype)t()[e]=b().prototype[e];i()(document).ready((()=>{const e=i()(".js-dropdown"),t=new x,n=i()('.js-top-menu ul[data-depth="0"]'),r=new w(e),o=new E(n),s=new l,a=new c;r.init(),t.init(),o.init(),s.init(),a.init(),T(".field-password-policy"),i()('.carousel[data-touch="true"]').swipe({swipe(e,t){"left"===t&&i()(this).carousel("next"),"right"===t&&i()(this).carousel("prev")},allowPageScroll:"vertical"})}))}()}();